package com.huawei.esdk.uc.u19.business.professional.rest.ctc;

import java.util.List;

import com.huawei.esdk.platform.common.SDKResult;
import com.huawei.esdk.platform.common.exception.SDKException;
import com.huawei.esdk.uc.domain.model.Conference;

public class CTCService
{
    public SDKResult<String> createConf(Conference conf)
        throws SDKException
    {
        return conf.createConfU19();
    }
    
    public SDKResult<String> modifyConf(Conference confInfo) throws SDKException
    {
        return confInfo.modifyConfU19();
    }

    public SDKResult<Conference> endConf(String userId, String gwIp, List<Integer> confRooms) throws SDKException
    {
        return new Conference().endConfU19(userId, gwIp, confRooms);
    }
    
    public SDKResult<List<Conference>> queryConf(String userId, String gwIp, String subPbxNo, String confRoom)
        throws SDKException
    {
        return new Conference().queryConfU19(userId, gwIp, subPbxNo, confRoom);
    }   
}
